// samsting : this file is auto create.

#include "Cdn/2014-11-11/DescribeRefreshTasksResponse.h"

namespace aliyun { namespace Cdn {

DescribeRefreshTasksResponse::DescribeRefreshTasksResponse() {
}

const string& DescribeRefreshTasksResponse::CDNTask::GetTaskId(void) const {
  return TaskId_;
}

const string& DescribeRefreshTasksResponse::CDNTask::GetObjectPath(void) const {
  return ObjectPath_;
}

const string& DescribeRefreshTasksResponse::CDNTask::GetStatus(void) const {
  return Status_;
}

const string& DescribeRefreshTasksResponse::CDNTask::GetCreationTime(void) const {
  return CreationTime_;
}

const std::vector<DescribeRefreshTasksResponse::CDNTask>& DescribeRefreshTasksResponse::GetTasks(void) const {
  return Tasks_;
}

int64 DescribeRefreshTasksResponse::GetPageNumber(void) const {
  return PageNumber_;
}

int64 DescribeRefreshTasksResponse::GetPageSize(void) const {
  return PageSize_;
}

int64 DescribeRefreshTasksResponse::GetTotalCount(void) const {
  return TotalCount_;
}

const char* DescribeRefreshTasksResponse::BaseKey(void) {
  return "DescribeRefreshTasksResponse";
}

void DescribeRefreshTasksResponse::UnmarshallerMap(std::map<string, string>& response_map) {
  int Tasks__length = 0;
  UnmarshallerInt(Tasks__length, response_map, "DescribeRefreshTasksResponse.Tasks.Length");
  if(Tasks__length >= 0) {
    Tasks_.resize(Tasks__length);
    for(int i1 = 0; i1 < Tasks__length; i1++) {
      UnmarshallerString(Tasks_[i1].TaskId_, response_map, "DescribeRefreshTasksResponse.Tasks["+string_ValueOfInt(i1)+"].TaskId");
      UnmarshallerString(Tasks_[i1].ObjectPath_, response_map, "DescribeRefreshTasksResponse.Tasks["+string_ValueOfInt(i1)+"].ObjectPath");
      UnmarshallerString(Tasks_[i1].Status_, response_map, "DescribeRefreshTasksResponse.Tasks["+string_ValueOfInt(i1)+"].Status");
      UnmarshallerString(Tasks_[i1].CreationTime_, response_map, "DescribeRefreshTasksResponse.Tasks["+string_ValueOfInt(i1)+"].CreationTime");
    } // for(int i1 = 0; i1 < Tasks__length; i1++) {
  } // if(Tasks__length >= 0) {

  UnmarshallerInt64(PageNumber_, response_map, "DescribeRefreshTasksResponse.PageNumber");
  UnmarshallerInt64(PageSize_, response_map, "DescribeRefreshTasksResponse.PageSize");
  UnmarshallerInt64(TotalCount_, response_map, "DescribeRefreshTasksResponse.TotalCount");
}


} } // namespace aliyun { namespace Cdn {

// end of file 
